Integrand size = 28, antiderivative size = 46 \[ \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx=-\frac {2 i a \text {arctanh}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{\sqrt {c-i d} f} \]
Time = 0.39 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.00 \[ \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx=-\frac {2 i a \text {arctanh}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{\sqrt {c-i d} f} \]
Time = 0.26 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.80, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3042, 4020, 25, 27, 73, 221}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}}dx\) |
\(\Big \downarrow \) 4020 |
\(\displaystyle \frac {i a^2 \int -\frac {1}{a (a-i a \tan (e+f x)) \sqrt {c+d \tan (e+f x)}}d(i a \tan (e+f x))}{f}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {i a^2 \int \frac {1}{a (a-i a \tan (e+f x)) \sqrt {c+d \tan (e+f x)}}d(i a \tan (e+f x))}{f}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {i a \int \frac {1}{(a-i a \tan (e+f x)) \sqrt {c+d \tan (e+f x)}}d(i a \tan (e+f x))}{f}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle \frac {2 a^2 \int \frac {1}{\frac {i \tan ^2(e+f x) a^3}{d}+\left (\frac {i c}{d}+1\right ) a}d\sqrt {c+d \tan (e+f x)}}{d f}\) |
\(\Big \downarrow \) 221 |
\(\displaystyle \frac {2 a \arctan \left (\frac {a \tan (e+f x)}{\sqrt {c-i d}}\right )}{f \sqrt {c-i d}}\) |
3.12.21.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x /Rt[-a/b, 2]], x] /; FreeQ[{a, b}, x] && NegQ[a/b]
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[c*(d/f) Subst[Int[(a + (b/d)*x)^m/(d^2 + c*x), x], x, d*Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[ b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && EqQ[c^2 + d^2, 0]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 729 vs. \(2 (37 ) = 74\).
Time = 0.92 (sec) , antiderivative size = 730, normalized size of antiderivative = 15.87
method | result | size |
derivativedivides | \(\frac {a \left (\frac {\frac {\left (-i \sqrt {c^{2}+d^{2}}-i c +d \right ) \ln \left (d \tan \left (f x +e \right )+c +\sqrt {c +d \tan \left (f x +e \right )}\, \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}+\sqrt {c^{2}+d^{2}}\right )}{2}+\frac {2 \left (-i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c +\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, d -\frac {\left (-i \sqrt {c^{2}+d^{2}}-i c +d \right ) \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}}{2}\right ) \arctan \left (\frac {2 \sqrt {c +d \tan \left (f x +e \right )}+\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}\right )}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}}{\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}}+\frac {-\frac {\left (-2 i c^{2} \sqrt {c^{2}+d^{2}}-i d^{2} \sqrt {c^{2}+d^{2}}-2 i c^{3}-2 i c \,d^{2}+c d \sqrt {c^{2}+d^{2}}+c^{2} d +d^{3}\right ) \ln \left (\sqrt {c +d \tan \left (f x +e \right )}\, \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}-d \tan \left (f x +e \right )-c -\sqrt {c^{2}+d^{2}}\right )}{2}+\frac {2 \left (i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}\, c^{2}+i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c^{3}+i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c \,d^{2}-\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}\, c d -\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c^{2} d -\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, d^{3}+\frac {\left (-2 i c^{2} \sqrt {c^{2}+d^{2}}-i d^{2} \sqrt {c^{2}+d^{2}}-2 i c^{3}-2 i c \,d^{2}+c d \sqrt {c^{2}+d^{2}}+c^{2} d +d^{3}\right ) \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}}{2}\right ) \arctan \left (\frac {\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}-2 \sqrt {c +d \tan \left (f x +e \right )}}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}\right )}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}}{\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}\, \left (\sqrt {c^{2}+d^{2}}\, c +c^{2}+d^{2}\right )}\right )}{f}\) | \(730\) |
default | \(\frac {a \left (\frac {\frac {\left (-i \sqrt {c^{2}+d^{2}}-i c +d \right ) \ln \left (d \tan \left (f x +e \right )+c +\sqrt {c +d \tan \left (f x +e \right )}\, \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}+\sqrt {c^{2}+d^{2}}\right )}{2}+\frac {2 \left (-i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c +\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, d -\frac {\left (-i \sqrt {c^{2}+d^{2}}-i c +d \right ) \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}}{2}\right ) \arctan \left (\frac {2 \sqrt {c +d \tan \left (f x +e \right )}+\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}\right )}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}}{\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}}+\frac {-\frac {\left (-2 i c^{2} \sqrt {c^{2}+d^{2}}-i d^{2} \sqrt {c^{2}+d^{2}}-2 i c^{3}-2 i c \,d^{2}+c d \sqrt {c^{2}+d^{2}}+c^{2} d +d^{3}\right ) \ln \left (\sqrt {c +d \tan \left (f x +e \right )}\, \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}-d \tan \left (f x +e \right )-c -\sqrt {c^{2}+d^{2}}\right )}{2}+\frac {2 \left (i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}\, c^{2}+i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c^{3}+i \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c \,d^{2}-\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}\, c d -\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, c^{2} d -\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, d^{3}+\frac {\left (-2 i c^{2} \sqrt {c^{2}+d^{2}}-i d^{2} \sqrt {c^{2}+d^{2}}-2 i c^{3}-2 i c \,d^{2}+c d \sqrt {c^{2}+d^{2}}+c^{2} d +d^{3}\right ) \sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}}{2}\right ) \arctan \left (\frac {\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}-2 \sqrt {c +d \tan \left (f x +e \right )}}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}\right )}{\sqrt {2 \sqrt {c^{2}+d^{2}}-2 c}}}{\sqrt {2 \sqrt {c^{2}+d^{2}}+2 c}\, \sqrt {c^{2}+d^{2}}\, \left (\sqrt {c^{2}+d^{2}}\, c +c^{2}+d^{2}\right )}\right )}{f}\) | \(730\) |
parts | \(\text {Expression too large to display}\) | \(1901\) |
1/f*a*(1/(2*(c^2+d^2)^(1/2)+2*c)^(1/2)/(c^2+d^2)^(1/2)*(1/2*(-I*(c^2+d^2)^ (1/2)-I*c+d)*ln(d*tan(f*x+e)+c+(c+d*tan(f*x+e))^(1/2)*(2*(c^2+d^2)^(1/2)+2 *c)^(1/2)+(c^2+d^2)^(1/2))+2*(-I*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*c+(2*(c^2+d ^2)^(1/2)+2*c)^(1/2)*d-1/2*(-I*(c^2+d^2)^(1/2)-I*c+d)*(2*(c^2+d^2)^(1/2)+2 *c)^(1/2))/(2*(c^2+d^2)^(1/2)-2*c)^(1/2)*arctan((2*(c+d*tan(f*x+e))^(1/2)+ (2*(c^2+d^2)^(1/2)+2*c)^(1/2))/(2*(c^2+d^2)^(1/2)-2*c)^(1/2)))+1/(2*(c^2+d ^2)^(1/2)+2*c)^(1/2)/(c^2+d^2)^(1/2)/((c^2+d^2)^(1/2)*c+c^2+d^2)*(-1/2*(-2 *I*(c^2+d^2)^(1/2)*c^2-I*d^2*(c^2+d^2)^(1/2)-2*I*c^3-2*I*c*d^2+c*d*(c^2+d^ 2)^(1/2)+c^2*d+d^3)*ln((c+d*tan(f*x+e))^(1/2)*(2*(c^2+d^2)^(1/2)+2*c)^(1/2 )-d*tan(f*x+e)-c-(c^2+d^2)^(1/2))+2*(I*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*(c^2+ d^2)^(1/2)*c^2+I*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*c^3+I*(2*(c^2+d^2)^(1/2)+2* c)^(1/2)*c*d^2-(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*(c^2+d^2)^(1/2)*c*d-(2*(c^2+d ^2)^(1/2)+2*c)^(1/2)*c^2*d-(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*d^3+1/2*(-2*I*(c^ 2+d^2)^(1/2)*c^2-I*d^2*(c^2+d^2)^(1/2)-2*I*c^3-2*I*c*d^2+c*d*(c^2+d^2)^(1/ 2)+c^2*d+d^3)*(2*(c^2+d^2)^(1/2)+2*c)^(1/2))/(2*(c^2+d^2)^(1/2)-2*c)^(1/2) *arctan(((2*(c^2+d^2)^(1/2)+2*c)^(1/2)-2*(c+d*tan(f*x+e))^(1/2))/(2*(c^2+d ^2)^(1/2)-2*c)^(1/2))))
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 275 vs. \(2 (34) = 68\).
Time = 0.24 (sec) , antiderivative size = 275, normalized size of antiderivative = 5.98 \[ \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx=\frac {1}{4} \, \sqrt {-\frac {4 i \, a^{2}}{{\left (i \, c + d\right )} f^{2}}} \log \left (\frac {{\left (2 \, a c + {\left ({\left (i \, c + d\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (i \, c + d\right )} f\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {-\frac {4 i \, a^{2}}{{\left (i \, c + d\right )} f^{2}}} + 2 \, {\left (a c - i \, a d\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{a}\right ) - \frac {1}{4} \, \sqrt {-\frac {4 i \, a^{2}}{{\left (i \, c + d\right )} f^{2}}} \log \left (\frac {{\left (2 \, a c + {\left ({\left (-i \, c - d\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (-i \, c - d\right )} f\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {-\frac {4 i \, a^{2}}{{\left (i \, c + d\right )} f^{2}}} + 2 \, {\left (a c - i \, a d\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{a}\right ) \]
1/4*sqrt(-4*I*a^2/((I*c + d)*f^2))*log((2*a*c + ((I*c + d)*f*e^(2*I*f*x + 2*I*e) + (I*c + d)*f)*sqrt(((c - I*d)*e^(2*I*f*x + 2*I*e) + c + I*d)/(e^(2 *I*f*x + 2*I*e) + 1))*sqrt(-4*I*a^2/((I*c + d)*f^2)) + 2*(a*c - I*a*d)*e^( 2*I*f*x + 2*I*e))*e^(-2*I*f*x - 2*I*e)/a) - 1/4*sqrt(-4*I*a^2/((I*c + d)*f ^2))*log((2*a*c + ((-I*c - d)*f*e^(2*I*f*x + 2*I*e) + (-I*c - d)*f)*sqrt(( (c - I*d)*e^(2*I*f*x + 2*I*e) + c + I*d)/(e^(2*I*f*x + 2*I*e) + 1))*sqrt(- 4*I*a^2/((I*c + d)*f^2)) + 2*(a*c - I*a*d)*e^(2*I*f*x + 2*I*e))*e^(-2*I*f* x - 2*I*e)/a)
\[ \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx=i a \left (\int \left (- \frac {i}{\sqrt {c + d \tan {\left (e + f x \right )}}}\right )\, dx + \int \frac {\tan {\left (e + f x \right )}}{\sqrt {c + d \tan {\left (e + f x \right )}}}\, dx\right ) \]
I*a*(Integral(-I/sqrt(c + d*tan(e + f*x)), x) + Integral(tan(e + f*x)/sqrt (c + d*tan(e + f*x)), x))
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 6484 vs. \(2 (34) = 68\).
Time = 0.54 (sec) , antiderivative size = 6484, normalized size of antiderivative = 140.96 \[ \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx=\text {Too large to display} \]
-1/4*(sqrt(2*c^2 + 2*d^2)*(2*a*arctan2((d^2*cos(2*f*x + 2*e) - c*d*sin(2*f *x + 2*e) + ((c^4 + 2*c^2*d^2 + d^4)*cos(2*f*x + 2*e)^4 + (c^4 + 2*c^2*d^2 + d^4)*sin(2*f*x + 2*e)^4 + c^4 + 2*c^2*d^2 + d^4 + 4*(c^4 + c^2*d^2)*cos (2*f*x + 2*e)^3 + 4*(c^3*d + c*d^3)*sin(2*f*x + 2*e)^3 + 2*(3*c^4 + 2*c^2* d^2 - d^4)*cos(2*f*x + 2*e)^2 + 2*(c^4 + 2*c^2*d^2 + d^4 + (c^4 + 2*c^2*d^ 2 + d^4)*cos(2*f*x + 2*e)^2 + 2*(c^4 + c^2*d^2)*cos(2*f*x + 2*e))*sin(2*f* x + 2*e)^2 + 4*(c^4 + c^2*d^2)*cos(2*f*x + 2*e) + 4*(c^3*d + c*d^3 + (c^3* d + c*d^3)*cos(2*f*x + 2*e)^2 + 2*(c^3*d + c*d^3)*cos(2*f*x + 2*e))*sin(2* f*x + 2*e))^(1/4)*d*sin(1/2*arctan2(-2*(c*d*cos(2*f*x + 2*e)^2 - c*d*sin(2 *f*x + 2*e)^2 + c*d*cos(2*f*x + 2*e) - (c^2 + (c^2 - d^2)*cos(2*f*x + 2*e) )*sin(2*f*x + 2*e))/d^2, (2*c^2*cos(2*f*x + 2*e) + (c^2 - d^2)*cos(2*f*x + 2*e)^2 - (c^2 - d^2)*sin(2*f*x + 2*e)^2 + c^2 + d^2 + 2*(2*c*d*cos(2*f*x + 2*e) + c*d)*sin(2*f*x + 2*e))/d^2)))/d^2, -(c*cos(2*f*x + 2*e) + d*sin(2 *f*x + 2*e) - ((c^4 + 2*c^2*d^2 + d^4)*cos(2*f*x + 2*e)^4 + (c^4 + 2*c^2*d ^2 + d^4)*sin(2*f*x + 2*e)^4 + c^4 + 2*c^2*d^2 + d^4 + 4*(c^4 + c^2*d^2)*c os(2*f*x + 2*e)^3 + 4*(c^3*d + c*d^3)*sin(2*f*x + 2*e)^3 + 2*(3*c^4 + 2*c^ 2*d^2 - d^4)*cos(2*f*x + 2*e)^2 + 2*(c^4 + 2*c^2*d^2 + d^4 + (c^4 + 2*c^2* d^2 + d^4)*cos(2*f*x + 2*e)^2 + 2*(c^4 + c^2*d^2)*cos(2*f*x + 2*e))*sin(2* f*x + 2*e)^2 + 4*(c^4 + c^2*d^2)*cos(2*f*x + 2*e) + 4*(c^3*d + c*d^3 + (c^ 3*d + c*d^3)*cos(2*f*x + 2*e)^2 + 2*(c^3*d + c*d^3)*cos(2*f*x + 2*e))*s...
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 156 vs. \(2 (34) = 68\).
Time = 0.45 (sec) , antiderivative size = 156, normalized size of antiderivative = 3.39 \[ \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx=\frac {4 i \, a \arctan \left (\frac {2 \, {\left (\sqrt {d \tan \left (f x + e\right ) + c} c - \sqrt {c^{2} + d^{2}} \sqrt {d \tan \left (f x + e\right ) + c}\right )}}{c \sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}} - i \, \sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}} d - \sqrt {c^{2} + d^{2}} \sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}}}\right )}{\sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}} f {\left (-\frac {i \, d}{c - \sqrt {c^{2} + d^{2}}} + 1\right )}} \]
4*I*a*arctan(2*(sqrt(d*tan(f*x + e) + c)*c - sqrt(c^2 + d^2)*sqrt(d*tan(f* x + e) + c))/(c*sqrt(-2*c + 2*sqrt(c^2 + d^2)) - I*sqrt(-2*c + 2*sqrt(c^2 + d^2))*d - sqrt(c^2 + d^2)*sqrt(-2*c + 2*sqrt(c^2 + d^2))))/(sqrt(-2*c + 2*sqrt(c^2 + d^2))*f*(-I*d/(c - sqrt(c^2 + d^2)) + 1))
Time = 7.16 (sec) , antiderivative size = 2947, normalized size of antiderivative = 64.07 \[ \int \frac {a+i a \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx=\text {Too large to display} \]
2*atanh((8*c*d^2*(- (-16*a^4*d^2*f^4)^(1/2)/(16*(c^2*f^4 + d^2*f^4)) - (a^ 2*c*f^2)/(4*(c^2*f^4 + d^2*f^4)))^(1/2)*(c + d*tan(e + f*x))^(1/2)*(-16*a^ 4*d^2*f^4)^(1/2))/((16*a^3*c*d^5*f^5)/(c^2*f^4 + d^2*f^4) + (4*a*d^5*f^4*( -16*a^4*d^2*f^4)^(1/2))/(c^2*f^5 + d^2*f^5) + (16*a^3*c^3*d^3*f^5)/(c^2*f^ 4 + d^2*f^4) + (4*a*c^2*d^3*f^4*(-16*a^4*d^2*f^4)^(1/2))/(c^2*f^5 + d^2*f^ 5)) - (32*a^2*d^2*(- (-16*a^4*d^2*f^4)^(1/2)/(16*(c^2*f^4 + d^2*f^4)) - (a ^2*c*f^2)/(4*(c^2*f^4 + d^2*f^4)))^(1/2)*(c + d*tan(e + f*x))^(1/2))/((16* a^3*c*d^3*f^3)/(c^2*f^4 + d^2*f^4) + (4*a*d^3*f^2*(-16*a^4*d^2*f^4)^(1/2)) /(c^2*f^5 + d^2*f^5)) + (32*a^2*c^2*d^2*f^2*(- (-16*a^4*d^2*f^4)^(1/2)/(16 *(c^2*f^4 + d^2*f^4)) - (a^2*c*f^2)/(4*(c^2*f^4 + d^2*f^4)))^(1/2)*(c + d* tan(e + f*x))^(1/2))/((16*a^3*c*d^5*f^5)/(c^2*f^4 + d^2*f^4) + (4*a*d^5*f^ 4*(-16*a^4*d^2*f^4)^(1/2))/(c^2*f^5 + d^2*f^5) + (16*a^3*c^3*d^3*f^5)/(c^2 *f^4 + d^2*f^4) + (4*a*c^2*d^3*f^4*(-16*a^4*d^2*f^4)^(1/2))/(c^2*f^5 + d^2 *f^5)))*(- (-16*a^4*d^2*f^4)^(1/2)/(16*(c^2*f^4 + d^2*f^4)) - (a^2*c*f^2)/ (4*(c^2*f^4 + d^2*f^4)))^(1/2) - 2*atanh((32*a^2*d^2*((-16*a^4*d^2*f^4)^(1 /2)/(16*(c^2*f^4 + d^2*f^4)) - (a^2*c*f^2)/(4*(c^2*f^4 + d^2*f^4)))^(1/2)* (c + d*tan(e + f*x))^(1/2))/((16*a^3*c*d^3*f^3)/(c^2*f^4 + d^2*f^4) - (4*a *d^3*f^2*(-16*a^4*d^2*f^4)^(1/2))/(c^2*f^5 + d^2*f^5)) + (8*c*d^2*((-16*a^ 4*d^2*f^4)^(1/2)/(16*(c^2*f^4 + d^2*f^4)) - (a^2*c*f^2)/(4*(c^2*f^4 + d^2* f^4)))^(1/2)*(c + d*tan(e + f*x))^(1/2)*(-16*a^4*d^2*f^4)^(1/2))/((16*a...